package com.zygh.lz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 账户配置表
 */
@ApiModel(value = "com-zygh-lz-entity-AccountConfig")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "account_config")
public class AccountConfig implements Serializable {
    /**
     * 路长id
     */
    @TableId(value = "sys_staff_id")
    @ApiModelProperty(value = "路长id，不需要传，自动获取")
    private Integer sysStaffId;

    /**
     * 系统标题
     */
    @TableField(value = "system_title")
    @ApiModelProperty(value = "系统标题")
    @NotBlank
    @Length(min = 4, max = 16, message = "长度不能小于4，不能大于16")
    private String systemTitle;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(hidden = true, value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")

    @ApiModelProperty(hidden = true, value = "更新时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}